<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!--顶部开始-->
    <div class="top">
    	<div class="top1">
    	   <div class="top3">
    	   	<?php if(isset($_SESSION['uid']) || isset($_SESSION['nicname'])){ ?>
    	   	 <ul class="denglu one">
    			<li class="li1" style="width: 8px;">
    				<a href="<?php echo U('Index/Geren/index');?>"><img src="http://127.0.0.1/my/wasai/<?php echo $_SESSION['hearimg'];?>" alt="" style="width: 30px;height: 30px;position: relative;left: -8px;top: 7px;"/></a>
    			</li>
    			<li class="li2"><span><?php echo $_SESSION['nicname'];?></span>&nbsp;&nbsp;&nbsp;<a href="<?php echo U('Index/Login/out');?>">退出</a></li>
    		  </ul>
    	   	 <?php }else{ ?>
    		 <ul class="denglu">
    			<li class="li1"><a href="<?php echo U('Index/Login/denglu');?>">登陆</a></li>
    			<li class="li2"><a href="<?php echo U('Index/Login/index');?>">注册</a></li>
    		 </ul>
    		 <?php } ?>
    		 <ul class="gowu">
    		 	<li class="li2"><a href="<?php echo U('Index/Shop/index');?>" >购物车<span class="zongshuliang">    <?php if($_SESSION[cart][total_rows]){ ?><?php echo $_SESSION[cart][total_rows];?><?php }else{ ?>0<?php } ?></span> 件</a></li>
    			<li class="li1"><img src="http://127.0.0.1/my/wasai/Static/public/images/logo.png" alt="" /></li>
    			
    		 </ul>
    	   </div>
    	</div>
    	<div class="top2">
    		<div class="top4">
    			<a class="wosai" href=""><img src="" alt="" /></a>
	    	   	 <ul class="caidan">
	    			<li class="li1"><a href="<?php echo U('Index/Index/index');?>"></a></li>
	    			<li class="li2"><a href="<?php echo U('Index/Daohang/index');?>">市集</a></li>
	    			<li class="li2"><a href="<?php echo U('Index/List/index',array('cid'=>23));?>">服装</a></li>
	    			<li class="li2"><a href="<?php echo U('Index/List/index',array('cid'=>112));?>">饰品</a></li>
	    			<li class="li2"><a href="<?php echo U('Index/List/index',array('cid'=>124));?>">鞋包</a></li>
	    			<li class="li3"><a href="<?php echo U('Index/List/index',array('cid'=>137));?>">居家</a></li>
	    			<li class="li4"><a href="<?php echo U('Index/Index/index');?>"><img src="http://127.0.0.1/my/wasai/Static/public/images/wosai.png" alt="" /></a></li>
	    		 </ul>
	    		 <ul class="sousuo">
	    			<li class="li1">
	    				<form action="" method="post">
	    					<input class="sou" type="" placeholder="请输入要搜索的关键词" name="" value="" />
	    					<input class="tijiao" type="submit" value=""/>
	    				</form>
	    			</li>
	    			<li class="li2"><a href="<?php echo U('Index/List/index',array('cid'=>151));?>">数码</a></li>
	    			<li class="li3"><a href="<?php echo U('Index/List/index',array('cid'=>163));?>">文具</a></li>
	    		</ul>
    	   </div>
    	</div>
    </div>
    <!--顶部结束-->
